import request from '@/utils/request'

// 员工工资支出查询并分页
export function getEmployeePayList(params) {
  return request({
    url: '/employeePay/list',
    method: 'POST',
    params
  })
}

// 查询单个员工工资支出数据
export function selectEmployeePay(params) {
  return request({
    url: '/employeePay/load',
    method: 'POST',
    params
  })
}

// 员工工资支出添加
export function addEmployeePay(data) {
  return request({
    url: '/employeePay/add',
    method: 'POST',
    data
  })
}

// 查询员工姓名
export function selectEmployees(params) {
  return request({
    url: '/employeePay/add/employees',
    method: 'post',
    params
  })
}

// 查询团队
export function selectTeam(params) {
  return request({
    url: '/employeePay/team',
    method: 'POST',
    params
  })
}

// 删除员工工资支出数据
export function deleteEmployeePay(params) {
  return request({
    url: '/employeePay/delete',
    method: 'POST',
    params
  })
}

// 修改员工工资支出
export function updateEmployeePay(data) {
  return request({
    url: '/employeePay/update',
    method: 'POST',
    data
  })
}

// 工资明细分页查询
export function getMonthlyWages(params) {
  return request({
    url: '/monthlyWages/selectPage',
    method: 'POST',
    params
  })
}

// 工资明细查询
export function selectMonthlyWages(params) {
  return request({
    url: '/monthlyWages/selectByPrimaryKey',
    method: 'POST',
    params
  })
}

// 工资明细分页查询
export function selectList(params) {
  return request({
    url: '/monthlyWages/selectList',
    method: 'POST',
    params
  })
}

// 批量以excel格式导入员工月工资
export function downloadMonthlyWages(data) {
  return request({
    url: '/monthlyWages/batchInsertInfo',
    method: 'POST',
    data
  })
}

